package start.doubudouyin.service;

import start.doubudouyin.entity.Follow;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author mmmm
* @description 针对表【follow(关注表)】的数据库操作Service
* @createDate 2025-06-09 14:25:31
*/
public interface FollowService extends IService<Follow> {

    //  插入关注
    boolean insert(String followerId, String followedId);
    Follow isFollow(String followerId,String followedId);
    Integer GetFollowedCount(String userId);
    Integer GetFansCount(String userId);
    List<String> getfirendId(String followerId);
    List<String> getfollowedId(String followerId);
    Boolean isFollowed(String followerId,String followedId);
    Boolean isFriend(String followerId,String followedId);
    Integer removeFollowed(String followerId,String followedId);

    //  更新chat
    void updatechat(String senderId, String receiverId);

    //关注了userId的所有人和UserId关注了的并且chat=1的人
    List<String> getFollowers(String userId);
}
